/**
 * PingRequest.java
 */
package fss.common.communication;

import fss.util.UtcDate;
import fss.util.rmi.RmiId;

/**
 * A 'ping' request.
 * 
 * @author thinh
 *
 */
public class PingRequest extends Request {
    private static final long serialVersionUID = 1L;
    /**
     * The personalized message of this message.
     */
    private String message = "ping";
    /**
     * Create the request from the source id.
     * @param sourceId the id.
     */
    public PingRequest(RmiId sourceId) {
        timestamp = (new UtcDate()).getDate();
        this.sourceId = sourceId;
        this.message = "ping from " + sourceId;
    }
    /**
     * Get the personalized message.
     * @return the message, or null if not set.
     */
    public String getMessage() {
        return message;
    }
    /**
     * Set the personalized message.
     * @param message the message.
     */
    public void setMessage(String message) {
        this.message = message;
    }
}
